-- GENERATED SPELL FOR [Mutant War Hound] --


function spell0_23232(pUnit, Event) --@Cloud of Disease,Self--
pUnit:FullCastSpellOnTarget(41193,pUnit)
pUnit:RegisterEvent('Sorts_23232', 20000, 1)
end

function spell1_23232(pUnit, Event) --@Disease Cloud,Self--
pUnit:FullCastSpellOnTarget(41290,pUnit)
pUnit:RegisterEvent('Sorts_23232', 599, 1)
end

function Sorts_23232(pUnit, Event)
local choix_sorts_23232 = math.random(0, 1)
if choix_sorts_23232 == 0 then
pUnit:RegisterEvent('spell0_23232', 1, 1)
end
if choix_sorts_23232 == 1 then
pUnit:RegisterEvent('spell1_23232', 1, 1)
end
end

function mob23232_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23232', math.random(1500, 3000), 1)
end

function mob23232_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23232_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23232_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23232, 1, 'mob23232_Action')
RegisterUnitEvent(23232, 2, 'mob23232_Leave')
RegisterUnitEvent(23232, 3, 'mob23232_Kill')
RegisterUnitEvent(23232, 4, 'mob23232_Die')
